package com.zcf.pojo;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import lombok.Data;

import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 购物表
 * </p>
 *
 * @author loupeng
 * @since 2018-12-20
 */
@Data
public class Shopp extends Model<Shopp> {

	private static final long serialVersionUID = 1L;

	@TableId(value = "shopp_id")
	private String shoppId;
	private String shoppingId;
	private String userId;
	private String dinId;
	private String productId;
	private String number;
	private Double price;
	private Double totalPrice;
	private String flavor;
	private String addtime;
	@TableField(exist = false)
	private Double box;
	@TableField(exist = false)
	private String sId;
	@TableField(exist = false)
	private String uid;
	@TableField(exist = false)
	private String pid;
	@TableField(exist = false)
	private String did;
	@TableField(exist = false)
	private String dname;
	@TableField(exist = false)
	private String address;
	@TableField(exist = false)
	private String product_name;
	@TableField(exist = false)
	private String notice;
	@TableField(exist = false)
	private String image;
	@Override
	protected Serializable pkVal() {
		return this.shoppId;
	}

	@Override
	public String toString() {
		return "Shopp{" + "shoppId=" + shoppId + ", shoppingId=" + shoppingId + ", userId=" + userId + ", dinId="
				+ dinId + ", productId=" + productId + ", number=" + number + ", price=" + price + ", totalPrice="
				+ totalPrice + "}";
	}
}
